package com.test.outer;

public class OutClass {
	public static int i = 0;
	OutClass(){
		System.out.println("outclass" + i++);
	}
	public static void test(){
		System.out.println(i);
	}
	public static class InnerClass{
		InnerClass(){
			System.out.println("innerclass");
			test();
		}
		void test(){
			System.out.println("inner test：" + i);
		}
	}
	public static void main(String[] args){
		OutClass oc = new OutClass();
		oc.test();
		System.out.println("---------------------");
		OutClass.InnerClass in = new OutClass.InnerClass();
	}
}